date
Type
function
Summary
Returns the current date.
Syntax
the [{ long | abbreviated | short }] [{ english | system }] date
the internet date
date()
Description
Use the date function to display the current date to the user, or to store the date for later use.
The format of the system date forms is set by the Date & Time control panel (on Mac OS systems), the Date control panel (on Windows systems), or the LANG environment variable (on Unix systems).
Examples
answer the date
put the internet date into dateHeader
put the long system date into field "Today's Date"
Value
Name | Type | Description |
---|---|---|
return | If the useSystemDate property is set to true or if you specify the system date, the times returned by the date function are formatted according to the user's system preferences. In general, the short date is briefer than the abbreviated date, which is briefer than the long date. If the useSystemDate is false or if you specify the english time, the short, abbreviated, and long forms of the date are in the format described below: The date form returns the month number, the day of the month, and the last two digits of the year, separated by slashes (/). The short date form returns the same value as the date form. The abbreviated date form returns the first three letters of the day of the week, a comma, the first three letters of the month, a space, the day of the month, a comma, and the year. The long date form returns the day of the week, a comma, the name of the month, a space, the day of the month, a comma, and the year. The internet date form returns the following parts, separated by spaces:
|
Related
keyword: long, english, short, system, abbreviated
property: centuryCutoff
command: convert
control structure: function
function: dateFormat, milliseconds, format, ticks
glossary: property, return, format
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile